package com.roamer.audition.common.constants;

/**
 * Redis Key
 *
 * @author roamer
 * @version V1.0
 * @date 2020/2/19 20:14
 */
public final class RedisConstants {


    /**
     * 前缀
     */
    private static final String SYSTEM_KEY_PREFIX = "STARHOME:";

    /**
     * 管理平台登陆用户信息
     */
    public static final String E_LOGIN_USER_INFO = SYSTEM_KEY_PREFIX + "USER:INFO:E:";

    /**
     * 会员系统登陆用户信息
     */
    public static final String C_LOGIN_USER_INFO = SYSTEM_KEY_PREFIX + "USER:INFO:C:";

    /**
     * 验证码
     */
    public static final String VERIFY_IMAGE_CODE = SYSTEM_KEY_PREFIX + "VERIFYIMAGE:";

    /**
     * 会员系统登陆验证码
     */
    public static final String C_LOGIN_CAPTCHA = SYSTEM_KEY_PREFIX + "C:LOGIN:CAPTCHA:";

    /**
     * 序列号生成器线程锁
     */
    public static final String SERIALNUMBER_LOCK = SYSTEM_KEY_PREFIX + "SERIALNUMBER:LOCK:";

    /**
     * 创建定单的线程锁
     */
    public static final String ORDER_CREATE_LOCK = SYSTEM_KEY_PREFIX + "ORDER:CREATE:LOCK:";

    /**
     * 定单的线程锁
     * 同一定单不可同时处于多种操作
     */
    public static final String ORDER_STATUS_UPDATE_LOCK = SYSTEM_KEY_PREFIX + "ORDER:STATUS:UPDATE:LOCK:";

    /**
     * 问题分类的序号线程锁
     * 序号不可重复
     */
    public static final String FAQTYPE_SORTNO_LOCK = SYSTEM_KEY_PREFIX + "FAQTYPE:SORTNO:LOCK:";

    /**
     * 常见问题的序号线程锁
     * 序号不可重复
     */
    public static final String FAQ_SORTNO_LOCK = SYSTEM_KEY_PREFIX + "FAQ:SORTNO:LOCK:";


    /**
     * 定单的补充信息线程锁
     * 同一定单不可上传多个补充信息
     */
    public static final String ORDER_EXTRA_DATA_LOCK = SYSTEM_KEY_PREFIX + "ORDER:EXTRA:DATA:LOCK:";
}
